package com.xmut.community.entity;

import com.xmut.base.entiy.LongEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "t_login")
public class Login extends LongEntity {

    @Column(unique = true)
    private String username;//	用户名

    private String password;//	密码
    @Column(length = 2)
    private String role;//	角色 01普通用户 02管理员


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
